﻿using System;
using System.Web.UI.WebControls;

namespace NotAClue.Web.DynamicData
{
    /// <summary>
    /// Event Arguments for Changing Aware Event
    /// </summary>
    public class ChangingAwareEventArgs : EventArgs
    {
        /// <summary>
        /// Custom event arguments for SelectionChanged 
        /// event of the ParentNotAClue.ChangingAwareFieldTemplate control
        /// </summary>
        /// <param name="value">
        /// The value of the currently selected 
        /// value of the parent control
        /// </param>
        public ChangingAwareEventArgs(ListItem listItem)
        {
            ListItem = listItem;
        }
        /// <summary>
        /// The values from the control of the parent control
        /// </summary>
        public ListItem ListItem { get; set; }
    }
}